@extends('layouts.iframelayout')

@section('main')
<section class="content">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Thống kê <small>Chứng chỉ</small></h3>
            </div><!-- /.box-header -->
            <div class="box-body">

                <div class="form-group"> 
                    <div class="row">
                        <div class="col-xs-4 col-sm-4 col-md-4 col-lg-4">
                            <label>Loại thống kê</label>
                            <select name="loai_thong_ke" id="loai_thong_ke" class="form-control" required="required">
                                <option value="">Chọn</option>
                                <option value="1">Theo Năm</option>
                                <option value="2">Theo Khoá Thi</option>
                                <option value="3">Theo Hội Đồng Thi</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <button type="button" class="btn btn-info" id="submit"><i class="fa fa-plus"></i> Tạo Thống Kê</button>
                </div>
            </div>
        </div>
    </div>
</section>
<section class="content" id="thong_ke" hidden>
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="box box-primary">
            <div class="box-header">
                <div><h3 class="box-title">Kết Quả Thống Kê</h3></div>

            </div><!-- /.box-header -->

            <div class="box-body table-responsive">
                <div class="form-group">
                    <button id="print" type="button" class="btn bg-navy pull-right"><i class="fa fa-print"></i> In Thống Kê</button>
                    <button  type="button" class="btn btn-danger" onclick="tableToExcel('table_data', 'Sheet1')" ><i class="fa fa-cloud-download"></i> Xuất File Excel</button>
                    <br/><br/>
                </div>
                <div class="form-group">
                    <div id="results"></div>
                </div>

            </div>
        </div>
    </div>
</section>
@stop